package andanyoung.springcloudalibaba.warehouse.dto;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

//库存商品对象
@Data
@AllArgsConstructor
public class Stock implements Serializable {
    private static final long serialVersionUID = -1800835636660219354L;
    //商品品类编号
    private Long skuId;
    //商品与品类名称
    private String title;
    //库存数量
    private Integer quantity;
    //单位
    private String unit;
    //描述信息
    private String description;

    public Stock(Long skuId, String title, Integer quantity, String unit) {
        this.skuId = skuId;
        this.title = title;
        this.quantity = quantity;
        this.unit = unit;
    }
}
